]> dgit.raspbian.org Git - gnome-shell.git/commit
ControlsManagerLayout: Use the workarea size to compute the available height
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 18 Jun 2021 17:28:55 +0000 (19:28 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Jul 2021 22:25:50 +0000 (00:25 +0200)
commitf164e086880860a126fde6b6bfa267d8ecbab414
tree5e2ad581e3741129556a1ad3827ab2eeab910ed3
parentf30fa1adc77265cbaff2497c7abc7eed310fde72
ControlsManagerLayout: Use the workarea size to compute the available height

To compute the available height for the layout we're currently using the
panel position, while this works for the current and default setup, the
shell may be configured to use a different workarea, so we should rely on
it to compute the available space, instead of a specific widget.

So get the current monitor index for the current view and use its coordinates
instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1892>
js/ui/overviewControls.js